<?php
$this->widget('ext.pagetitle.PageTitle');

$this->breadcrumbs=array(
	Yii::t('admin', 'Administration')=>array('/admin'),
	Yii::t('admin', 'Comments')=>array('admin'),
	'#'.CHtml::encode($model->id),
);

$this->menu=array(
	array('label'=>Yii::t('admin','Create Comment'),'url'=>array('create')),
	array('label'=>Yii::t('admin','Update Comment'),'url'=>array('update', 'id'=>$model->id)),
	array('label'=>Yii::t('admin','Delete Comment'),'url'=>'#','linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
);
?>

<h1><?php echo Yii::t('admin','Comment'); ?> #<?php echo $model->id; ?></h1>

<?php $this->widget('BootstrapDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		array(
			'name'=>'id',
			'label'=>'#',
		),
		'alias',
		'body:html',
		array(
			'name'=>'status',
			'value'=>$model->getStatusString(),
		),
		array(
			'name'=>'entryId',
			'value'=>$model->entry->name,
			'header'=>Yii::t('label','Entry'),
		),
		array(
			'name'=>'creatorId',
			'value'=>$model->author->name,
			'header'=>Yii::t('label','Author'),
		),
		array(
			'name'=>'created',
			'value'=>Yii::app()->dateFormatter->formatDateTime($model->created,'medium','short'),
		),
		array(
			'name'=>'updated',
			'value'=>Yii::app()->dateFormatter->formatDateTime($model->updated,'medium','short'),
		),
	),
)); ?>